package com.test;
import java.io.IOException;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.hessian.token.util.ProUtil;

public class Myservlet extends HttpServlet {

	private static final long serialVersionUID = 1L;

	public void doGet(String accountCode,String Message)			throws IOException {

		 //response.sendRedirect("http://172.20.6.197:8080/x5/UI2/v_/chat/fromChat.w?device=m&chat="+ URLEncoder.encode("你好", "UTF-8"));
		 System.out.println("--->"+ProUtil.propertie.get("name"));  //name
		 Runtime.getRuntime().exec(ProUtil.propertie.get("url")+"&accountCode="+ accountCode +"&chat="+ URLEncoder.encode( Message, "UTF-8"));
		
		
	}
	
	
}
